package com.example.service;

import com.example.common.base.service.BaseService;
import com.example.common.utils.ApiResult;
import com.example.model.entity.Person;
import com.example.model.entity.PocEvent;
import com.example.model.query.PersonQuery;
import com.example.model.query.PocEventQuery;
import com.example.model.vo.FileVo;
import com.example.model.vo.PocEventVo;
import com.example.model.vo.SuppliesVo;
import org.bytedeco.javacpp.presets.opencv_core;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Map;


public interface PocEventService extends BaseService<PocEvent> {

    /**
     * 上传文件
     *
     * @return
     */
    ApiResult<FileVo>  imgUpload(HttpServletRequest request, HttpServletResponse response, MultipartFile file) throws Exception;

    ApiResult<String> preview(String path) throws Throwable;
    /**
     * 分页查询
     *
     * @param query
     * @return
     */
    ApiResult<PocEventQuery> pageUserVoByQuery(PocEventQuery query) throws Exception;

    /**
     * 添加
     *
     * @return
     */
    ApiResult<PocEvent> save(PocEventVo pocEventVo) throws Exception;

    ApiResult<Boolean> update(PocEventVo pocEventVo) throws Exception;

    ApiResult<PocEventVo> getInfo(String id) throws Exception;

    ApiResult<Boolean> del(String id) throws Exception;

    ApiResult<Boolean> modifyStatus(String id,Long status) throws Exception;
    /*
    导出
    */
    ApiResult<Boolean> export(PocEventQuery query, HttpServletRequest request, HttpServletResponse response) throws Exception;

}
